package com.yubest.designpattern.struct.bridge;

import lombok.AllArgsConstructor;

/**
 * 摇控
 *
 * @Author: hweiyu
 * @Date: 2022/10/26 14:37
 */
@AllArgsConstructor
public class RemoteControl {

    private TV tv;

    /**
     * 开电视
     */
    public void on() {
        tv.on();
    }

    /**
     * 关电视
     */
    public void off() {
        tv.off();
    }

    /**
     * 换频道
     */
    public void turnChannel() {
        tv.turnChannel();
    }
}
